package cn.xydpeng.springframework.context.event;

import cn.xydpeng.springframework.context.ApplicationContext;
import cn.xydpeng.springframework.context.ApplicationEvent;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/21
 * @description:
 * Base class for events raised for an {@code ApplicationContext}.
 */
public abstract class ApplicationContextEvent extends ApplicationEvent {


    public ApplicationContextEvent(ApplicationContext source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }

}
